package com.aaron.guide.proxystudy.staticProxy;

/**
 * @ClassName SmsServcieProxy
 * @description:
 * @author: 荣燊
 * @create: 2021-05-18 15:21
 **/
public class SmsServcieProxy implements SmsService {
    private final SmsService smsService;

    public SmsServcieProxy(SmsService smsService) {
        this.smsService = smsService;
    }

    @Override
    public String send(String message) {
        System.out.println("before send");
        smsService.send(message);
        System.out.println("after send");
        return message;
    }
}
